package org.dromara.bclt.api.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.io.Serializable;

/**
 * 手环--课程业务对象 bclt_course
 *
 * @author RRyuan
 * @date 2024-10-21
 */
@Data
@NoArgsConstructor

public class RemoteCourseBo implements Serializable {

    /**
     * 课程id
     */
    @NotNull(message = "课程id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 课程名称
     */
    @NotBlank(message = "课程名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 课程类型
     */
    @NotBlank(message = "课程类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bcltCourseType;

    /**
     * 课程url
     */
    @NotBlank(message = "课程url不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 课程总时长
     */
    @NotNull(message = "课程总时长不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long totalTime;

    /**
     * 课程备注
     */
    @NotBlank(message = "课程备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
